import utils from './utils.js'
let data = [{
	text: "DASHBOARD",
	icon: "icon-dashboard",
	on: false
}, {
	text: "AGENT",
	icon: "icon-sitemap",
	on: true
}, {
	text: "MY CRUISE",
	icon: "icon-boat",
	on: false
}, {
	text: "HELP",
	icon: "icon-life-bouy",
	on: false
}]

let sidebar = document.getElementById("sidebar");
export default {
	init() {
		data.forEach(item => {
			let nodeChild = utils.parseDom(`<div class="side-el row middle-span ${item.on?'on':''}">
					<div class="${item.icon} f-20"></div>
					<div class="text f-14">${item.text}</div>
				</div>`);
			sidebar.appendChild(nodeChild[0])
		})
	}
}